package br.com.felix.dbm.ui.components;

import br.com.felix.dbm.DatabaseObjectsFactory;
import br.com.felix.dbm.controller.ColumnController;

public class TableNameListener {
	
	private ColumnController columnController;
	
	public TableNameListener(ColumnController colunaUi){
		this.columnController = colunaUi;
	}
	
	
	public void tableNameChanged(String novoNome){
		columnController.setTablePrefix(DatabaseObjectsFactory.getDatabaseNamingRules().tableColumnPrefix(novoNome));
	}
	
	public ColumnController getColumnController(){
		return columnController;
	}
}
